﻿using LandManager.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LandManager.Web.Service
{
    public class HandleService : IService<LandHandle>
    {
        public bool Add(LandHandle t)
        {
            using (DataComDataContext db = new DataComDataContext())
            {
                try
                {
                    db.LandHandle.InsertOnSubmit(t);
                    db.SubmitChanges();

                    return true;
                }
                catch
                {
                    return false;
                }
            }
        }

        public bool Delete(LandHandle t)
        {
            throw new NotImplementedException();
        }

        public bool Edit(LandHandle t)
        {
            throw new NotImplementedException();
        }

        public List<LandHandle> GetList()
        {
            throw new NotImplementedException();
        }

        public LandHandle FindByID(int id)
        {
            throw new NotImplementedException();
        }
    }
}